
package it.jaco.aswiimotelib.events {

	import flash.events.*;

	public class NunchukButtonsEvent extends Event {

		public static const NO_CHANGE_DOWN:uint = 0;
		public static const NO_CHANGE_UP:uint = 1;
		public static const CHANGE_DOWN:uint = 2;
		public static const CHANGE_UP:uint = 4;
		
		public static const BUTTON_C_DOWN:String = "buttonCDown";
		public static const BUTTON_Z_DOWN:String = "buttonZDown";

		public static const BUTTON_C_CLICK:String = "buttonCClick";
		public static const BUTTON_Z_CLICK:String = "buttonZClick";
		public static const BUTTONS_UP:String = "nunchukButtonsUp";
		
		function NunchukButtonsEvent(evtName:String) {
			 super(evtName);
		}

		public static function get_buttonNameByIndex(index:uint):String {
			
			var btn:Array = ["C", "Z"];
		
			return "button" +btn[index];
		}
	}
}